// Generated by the protocol buffer compiler. DO NOT EDIT! // source: SearchResultProxy.proto package eu.hellek.gba.proto; public final class SearchResultProtos { private SearchResultProtos() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface SearchResultProxyOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string error = 1; boolean hasError(); String getError(); // repeated string mlkSet1String = 2; java.util.List<String> getMlkSet1StringList(); int getMlkSet1StringCount(); String getMlkSet1String(int index); // repeated string mlkSet2String = 3; java.util.List<String> getMlkSet2StringList(); int getMlkSet2StringCount(); String getMlkSet2String(int index); // repeated .colectivos.SearchResultProxy.ConnectionProxy connections = 4; java.util.List<eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy> getConnectionsList(); eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy getConnections(int index); int getConnectionsCount(); java.util.List<? extends eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxyOrBuilder> getConnectionsOrBuilderList(); eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxyOrBuilder getConnectionsOrBuilder( int index); } public static final class SearchResultProxy extends com.google.protobuf.GeneratedMessage implements SearchResultProxyOrBuilder { // Use SearchResultProxy.newBuilder() to construct. private SearchResultProxy(Builder builder) { super(builder); } private SearchResultProxy(boolean noInit) {} private static final SearchResultProxy defaultInstance; public static SearchResultProxy getDefaultInstance() { return defaultInstance; } public SearchResultProxy getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return eu.hellek.gba.proto.SearchResultProtos.internal_static_colectivos_SearchResultProxy_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return eu.hellek.gba.proto.SearchResultProtos.internal_static_colectivos_SearchResultProxy_fieldAccessorTable; } public interface ConnectionProxyOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated .colectivos.SearchResultProxy.ConnectionProxy.LineProxy lines = 1; java.util.List<eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy> getLinesList(); eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy getLines(int index); int getLinesCount(); java.util.List<? extends eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxyOrBuilder> getLinesOrBuilderList(); eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxyOrBuilder getLinesOrBuilder( int index); } public static final class ConnectionProxy extends com.google.protobuf.GeneratedMessage implements ConnectionProxyOrBuilder { // Use ConnectionProxy.newBuilder() to construct. private ConnectionProxy(Builder builder) { super(builder); } private ConnectionProxy(boolean noInit) {} private static final ConnectionProxy defaultInstance; public static ConnectionProxy getDefaultInstance() { return defaultInstance; } public ConnectionProxy getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return eu.hellek.gba.proto.SearchResultProtos.internal_static_colectivos_SearchResultProxy_ConnectionProxy_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return eu.hellek.gba.proto.SearchResultProtos.internal_static_colectivos_SearchResultProxy_ConnectionProxy_fieldAccessorTable; } public interface LineProxyOrBuilder extends com.google.protobuf.MessageOrBuilder { // optional string key = 1; boolean hasKey(); String getKey(); // optional string linenum = 2; boolean hasLinenum(); String getLinenum(); // optional string ramal = 3; boolean hasRamal(); String getRamal(); // required int32 type = 4; boolean hasType(); int getType(); // repeated float relevantPoints = 5; java.util.List<java.lang.Float> getRelevantPointsList(); int getRelevantPointsCount(); float getRelevantPoints(int index); // repeated float allPoints = 6; java.util.List<java.lang.Float> getAllPointsList(); int getAllPointsCount(); float getAllPoints(int index); // repeated string alternativeLines = 7; java.util.List<String> getAlternativeLinesList(); int getAlternativeLinesCount(); String getAlternativeLines(int index); // repeated string stations = 8; java.util.List<String> getStationsList(); int getStationsCount(); String getStations(int index); // required int32 distance = 9; boolean hasDistance(); int getDistance(); // optional string startStreet = 10; boolean hasStartStreet(); String getStartStreet(); // optional string destStreet = 11; boolean hasDestStreet(); String getDestStreet(); } public static final class LineProxy extends com.google.protobuf.GeneratedMessage implements LineProxyOrBuilder { // Use LineProxy.newBuilder() to construct. private LineProxy(Builder builder) { super(builder); } private LineProxy(boolean noInit) {} private static final LineProxy defaultInstance; public static LineProxy getDefaultInstance() { return defaultInstance; } public LineProxy getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return eu.hellek.gba.proto.SearchResultProtos.internal_static_colectivos_SearchResultProxy_ConnectionProxy_LineProxy_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return eu.hellek.gba.proto.SearchResultProtos.internal_static_colectivos_SearchResultProxy_ConnectionProxy_LineProxy_fieldAccessorTable; } private int bitField0_; // optional string key = 1; public static final int KEY_FIELD_NUMBER = 1; private java.lang.Object key_; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { java.lang.Object ref = key_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { key_ = s; } return s; } } private com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string linenum = 2; public static final int LINENUM_FIELD_NUMBER = 2; private java.lang.Object linenum_; public boolean hasLinenum() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getLinenum() { java.lang.Object ref = linenum_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { linenum_ = s; } return s; } } private com.google.protobuf.ByteString getLinenumBytes() { java.lang.Object ref = linenum_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); linenum_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string ramal = 3; public static final int RAMAL_FIELD_NUMBER = 3; private java.lang.Object ramal_; public boolean hasRamal() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getRamal() { java.lang.Object ref = ramal_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { ramal_ = s; } return s; } } private com.google.protobuf.ByteString getRamalBytes() { java.lang.Object ref = ramal_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); ramal_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // required int32 type = 4; public static final int TYPE_FIELD_NUMBER = 4; private int type_; public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getType() { return type_; } // repeated float relevantPoints = 5; public static final int RELEVANTPOINTS_FIELD_NUMBER = 5; private java.util.List<java.lang.Float> relevantPoints_; public java.util.List<java.lang.Float> getRelevantPointsList() { return relevantPoints_; } public int getRelevantPointsCount() { return relevantPoints_.size(); } public float getRelevantPoints(int index) { return relevantPoints_.get(index); } // repeated float allPoints = 6; public static final int ALLPOINTS_FIELD_NUMBER = 6; private java.util.List<java.lang.Float> allPoints_; public java.util.List<java.lang.Float> getAllPointsList() { return allPoints_; } public int getAllPointsCount() { return allPoints_.size(); } public float getAllPoints(int index) { return allPoints_.get(index); } // repeated string alternativeLines = 7; public static final int ALTERNATIVELINES_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList alternativeLines_; public java.util.List<String> getAlternativeLinesList() { return alternativeLines_; } public int getAlternativeLinesCount() { return alternativeLines_.size(); } public String getAlternativeLines(int index) { return alternativeLines_.get(index); } // repeated string stations = 8; public static final int STATIONS_FIELD_NUMBER = 8; private com.google.protobuf.LazyStringList stations_; public java.util.List<String> getStationsList() { return stations_; } public int getStationsCount() { return stations_.size(); } public String getStations(int index) { return stations_.get(index); } // required int32 distance = 9; public static final int DISTANCE_FIELD_NUMBER = 9; private int distance_; public boolean hasDistance() { return ((bitField0_ & 0x00000010) == 0x00000010); } public int getDistance() { return distance_; } // optional string startStreet = 10; public static final int STARTSTREET_FIELD_NUMBER = 10; private java.lang.Object startStreet_; public boolean hasStartStreet() { return ((bitField0_ & 0x00000020) == 0x00000020); } public String getStartStreet() { java.lang.Object ref = startStreet_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { startStreet_ = s; } return s; } } private com.google.protobuf.ByteString getStartStreetBytes() { java.lang.Object ref = startStreet_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); startStreet_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string destStreet = 11; public static final int DESTSTREET_FIELD_NUMBER = 11; private java.lang.Object destStreet_; public boolean hasDestStreet() { return ((bitField0_ & 0x00000040) == 0x00000040); } public String getDestStreet() { java.lang.Object ref = destStreet_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { destStreet_ = s; } return s; } } private com.google.protobuf.ByteString getDestStreetBytes() { java.lang.Object ref = destStreet_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); destStreet_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { key_ = ""; linenum_ = ""; ramal_ = ""; type_ = 0; relevantPoints_ = java.util.Collections.emptyList();; allPoints_ = java.util.Collections.emptyList();; alternativeLines_ = com.google.protobuf.LazyStringArrayList.EMPTY; stations_ = com.google.protobuf.LazyStringArrayList.EMPTY; distance_ = 0; startStreet_ = ""; destStreet_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasType()) { memoizedIsInitialized = 0; return false; } if (!hasDistance()) { memoizedIsInitialized = 0; return false; } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getLinenumBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, getRamalBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt32(4, type_); } for (int i = 0; i < relevantPoints_.size(); i++) { output.writeFloat(5, relevantPoints_.get(i)); } for (int i = 0; i < allPoints_.size(); i++) { output.writeFloat(6, allPoints_.get(i)); } for (int i = 0; i < alternativeLines_.size(); i++) { output.writeBytes(7, alternativeLines_.getByteString(i)); } for (int i = 0; i < stations_.size(); i++) { output.writeBytes(8, stations_.getByteString(i)); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeInt32(9, distance_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(10, getStartStreetBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { output.writeBytes(11, getDestStreetBytes()); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getKeyBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getLinenumBytes()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, getRamalBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, type_); } { int dataSize = 0; dataSize = 4 * getRelevantPointsList().size(); size += dataSize; size += 1 * getRelevantPointsList().size(); } { int dataSize = 0; dataSize = 4 * getAllPointsList().size(); size += dataSize; size += 1 * getAllPointsList().size(); } { int dataSize = 0; for (int i = 0; i < alternativeLines_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(alternativeLines_.getByteString(i)); } size += dataSize; size += 1 * getAlternativeLinesList().size(); } { int dataSize = 0; for (int i = 0; i < stations_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(stations_.getByteString(i)); } size += dataSize; size += 1 * getStationsList().size(); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(9, distance_); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(10, getStartStreetBytes()); } if (((bitField0_ & 0x00000040) == 0x00000040)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(11, getDestStreetBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return eu.hellek.gba.proto.SearchResultProtos.internal_static_colectivos_SearchResultProxy_ConnectionProxy_LineProxy_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return eu.hellek.gba.proto.SearchResultProtos.internal_static_colectivos_SearchResultProxy_ConnectionProxy_LineProxy_fieldAccessorTable; } // Construct using eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); linenum_ = ""; bitField0_ = (bitField0_ & ~0x00000002); ramal_ = ""; bitField0_ = (bitField0_ & ~0x00000004); type_ = 0; bitField0_ = (bitField0_ & ~0x00000008); relevantPoints_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000010); allPoints_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000020); alternativeLines_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); stations_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); distance_ = 0; bitField0_ = (bitField0_ & ~0x00000100); startStreet_ = ""; bitField0_ = (bitField0_ & ~0x00000200); destStreet_ = ""; bitField0_ = (bitField0_ & ~0x00000400); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.getDescriptor(); } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy getDefaultInstanceForType() { return eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.getDefaultInstance(); } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy build() { eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy buildPartial() { eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy result = new eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.linenum_ = linenum_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.ramal_ = ramal_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.type_ = type_; if (((bitField0_ & 0x00000010) == 0x00000010)) { relevantPoints_ = java.util.Collections.unmodifiableList(relevantPoints_); bitField0_ = (bitField0_ & ~0x00000010); } result.relevantPoints_ = relevantPoints_; if (((bitField0_ & 0x00000020) == 0x00000020)) { allPoints_ = java.util.Collections.unmodifiableList(allPoints_); bitField0_ = (bitField0_ & ~0x00000020); } result.allPoints_ = allPoints_; if (((bitField0_ & 0x00000040) == 0x00000040)) { alternativeLines_ = new com.google.protobuf.UnmodifiableLazyStringList( alternativeLines_); bitField0_ = (bitField0_ & ~0x00000040); } result.alternativeLines_ = alternativeLines_; if (((bitField0_ & 0x00000080) == 0x00000080)) { stations_ = new com.google.protobuf.UnmodifiableLazyStringList( stations_); bitField0_ = (bitField0_ & ~0x00000080); } result.stations_ = stations_; if (((from_bitField0_ & 0x00000100) == 0x00000100)) { to_bitField0_ |= 0x00000010; } result.distance_ = distance_; if (((from_bitField0_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x00000020; } result.startStreet_ = startStreet_; if (((from_bitField0_ & 0x00000400) == 0x00000400)) { to_bitField0_ |= 0x00000040; } result.destStreet_ = destStreet_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy) { return mergeFrom((eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy other) { if (other == eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.getDefaultInstance()) return this; if (other.hasKey()) { setKey(other.getKey()); } if (other.hasLinenum()) { setLinenum(other.getLinenum()); } if (other.hasRamal()) { setRamal(other.getRamal()); } if (other.hasType()) { setType(other.getType()); } if (!other.relevantPoints_.isEmpty()) { if (relevantPoints_.isEmpty()) { relevantPoints_ = other.relevantPoints_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureRelevantPointsIsMutable(); relevantPoints_.addAll(other.relevantPoints_); } onChanged(); } if (!other.allPoints_.isEmpty()) { if (allPoints_.isEmpty()) { allPoints_ = other.allPoints_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureAllPointsIsMutable(); allPoints_.addAll(other.allPoints_); } onChanged(); } if (!other.alternativeLines_.isEmpty()) { if (alternativeLines_.isEmpty()) { alternativeLines_ = other.alternativeLines_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureAlternativeLinesIsMutable(); alternativeLines_.addAll(other.alternativeLines_); } onChanged(); } if (!other.stations_.isEmpty()) { if (stations_.isEmpty()) { stations_ = other.stations_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureStationsIsMutable(); stations_.addAll(other.stations_); } onChanged(); } if (other.hasDistance()) { setDistance(other.getDistance()); } if (other.hasStartStreet()) { setStartStreet(other.getStartStreet()); } if (other.hasDestStreet()) { setDestStreet(other.getDestStreet()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasType()) { return false; } if (!hasDistance()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; key_ = input.readBytes(); break; } case 18: { bitField0_ |= 0x00000002; linenum_ = input.readBytes(); break; } case 26: { bitField0_ |= 0x00000004; ramal_ = input.readBytes(); break; } case 32: { bitField0_ |= 0x00000008; type_ = input.readInt32(); break; } case 45: { ensureRelevantPointsIsMutable(); relevantPoints_.add(input.readFloat()); break; } case 42: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addRelevantPoints(input.readFloat()); } input.popLimit(limit); break; } case 53: { ensureAllPointsIsMutable(); allPoints_.add(input.readFloat()); break; } case 50: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { addAllPoints(input.readFloat()); } input.popLimit(limit); break; } case 58: { ensureAlternativeLinesIsMutable(); alternativeLines_.add(input.readBytes()); break; } case 66: { ensureStationsIsMutable(); stations_.add(input.readBytes()); break; } case 72: { bitField0_ |= 0x00000100; distance_ = input.readInt32(); break; } case 82: { bitField0_ |= 0x00000200; startStreet_ = input.readBytes(); break; } case 90: { bitField0_ |= 0x00000400; destStreet_ = input.readBytes(); break; } } } } private int bitField0_; // optional string key = 1; private java.lang.Object key_ = ""; public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getKey() { java.lang.Object ref = key_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); key_ = s; return s; } else { return (String) ref; } } public Builder setKey(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; key_ = value; onChanged(); return this; } public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); key_ = getDefaultInstance().getKey(); onChanged(); return this; } void setKey(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; key_ = value; onChanged(); } // optional string linenum = 2; private java.lang.Object linenum_ = ""; public boolean hasLinenum() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getLinenum() { java.lang.Object ref = linenum_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); linenum_ = s; return s; } else { return (String) ref; } } public Builder setLinenum(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; linenum_ = value; onChanged(); return this; } public Builder clearLinenum() { bitField0_ = (bitField0_ & ~0x00000002); linenum_ = getDefaultInstance().getLinenum(); onChanged(); return this; } void setLinenum(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000002; linenum_ = value; onChanged(); } // optional string ramal = 3; private java.lang.Object ramal_ = ""; public boolean hasRamal() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getRamal() { java.lang.Object ref = ramal_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); ramal_ = s; return s; } else { return (String) ref; } } public Builder setRamal(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; ramal_ = value; onChanged(); return this; } public Builder clearRamal() { bitField0_ = (bitField0_ & ~0x00000004); ramal_ = getDefaultInstance().getRamal(); onChanged(); return this; } void setRamal(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000004; ramal_ = value; onChanged(); } // required int32 type = 4; private int type_ ; public boolean hasType() { return ((bitField0_ & 0x00000008) == 0x00000008); } public int getType() { return type_; } public Builder setType(int value) { bitField0_ |= 0x00000008; type_ = value; onChanged(); return this; } public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = 0; onChanged(); return this; } // repeated float relevantPoints = 5; private java.util.List<java.lang.Float> relevantPoints_ = java.util.Collections.emptyList();; private void ensureRelevantPointsIsMutable() { if (!((bitField0_ & 0x00000010) == 0x00000010)) { relevantPoints_ = new java.util.ArrayList<java.lang.Float>(relevantPoints_); bitField0_ |= 0x00000010; } } public java.util.List<java.lang.Float> getRelevantPointsList() { return java.util.Collections.unmodifiableList(relevantPoints_); } public int getRelevantPointsCount() { return relevantPoints_.size(); } public float getRelevantPoints(int index) { return relevantPoints_.get(index); } public Builder setRelevantPoints( int index, float value) { ensureRelevantPointsIsMutable(); relevantPoints_.set(index, value); onChanged(); return this; } public Builder addRelevantPoints(float value) { ensureRelevantPointsIsMutable(); relevantPoints_.add(value); onChanged(); return this; } public Builder addAllRelevantPoints( java.lang.Iterable<? extends java.lang.Float> values) { ensureRelevantPointsIsMutable(); super.addAll(values, relevantPoints_); onChanged(); return this; } public Builder clearRelevantPoints() { relevantPoints_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } // repeated float allPoints = 6; private java.util.List<java.lang.Float> allPoints_ = java.util.Collections.emptyList();; private void ensureAllPointsIsMutable() { if (!((bitField0_ & 0x00000020) == 0x00000020)) { allPoints_ = new java.util.ArrayList<java.lang.Float>(allPoints_); bitField0_ |= 0x00000020; } } public java.util.List<java.lang.Float> getAllPointsList() { return java.util.Collections.unmodifiableList(allPoints_); } public int getAllPointsCount() { return allPoints_.size(); } public float getAllPoints(int index) { return allPoints_.get(index); } public Builder setAllPoints( int index, float value) { ensureAllPointsIsMutable(); allPoints_.set(index, value); onChanged(); return this; } public Builder addAllPoints(float value) { ensureAllPointsIsMutable(); allPoints_.add(value); onChanged(); return this; } public Builder addAllAllPoints( java.lang.Iterable<? extends java.lang.Float> values) { ensureAllPointsIsMutable(); super.addAll(values, allPoints_); onChanged(); return this; } public Builder clearAllPoints() { allPoints_ = java.util.Collections.emptyList();; bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } // repeated string alternativeLines = 7; private com.google.protobuf.LazyStringList alternativeLines_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureAlternativeLinesIsMutable() { if (!((bitField0_ & 0x00000040) == 0x00000040)) { alternativeLines_ = new com.google.protobuf.LazyStringArrayList(alternativeLines_); bitField0_ |= 0x00000040; } } public java.util.List<String> getAlternativeLinesList() { return java.util.Collections.unmodifiableList(alternativeLines_); } public int getAlternativeLinesCount() { return alternativeLines_.size(); } public String getAlternativeLines(int index) { return alternativeLines_.get(index); } public Builder setAlternativeLines( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureAlternativeLinesIsMutable(); alternativeLines_.set(index, value); onChanged(); return this; } public Builder addAlternativeLines(String value) { if (value == null) { throw new NullPointerException(); } ensureAlternativeLinesIsMutable(); alternativeLines_.add(value); onChanged(); return this; } public Builder addAllAlternativeLines( java.lang.Iterable<String> values) { ensureAlternativeLinesIsMutable(); super.addAll(values, alternativeLines_); onChanged(); return this; } public Builder clearAlternativeLines() { alternativeLines_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } void addAlternativeLines(com.google.protobuf.ByteString value) { ensureAlternativeLinesIsMutable(); alternativeLines_.add(value); onChanged(); } // repeated string stations = 8; private com.google.protobuf.LazyStringList stations_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureStationsIsMutable() { if (!((bitField0_ & 0x00000080) == 0x00000080)) { stations_ = new com.google.protobuf.LazyStringArrayList(stations_); bitField0_ |= 0x00000080; } } public java.util.List<String> getStationsList() { return java.util.Collections.unmodifiableList(stations_); } public int getStationsCount() { return stations_.size(); } public String getStations(int index) { return stations_.get(index); } public Builder setStations( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureStationsIsMutable(); stations_.set(index, value); onChanged(); return this; } public Builder addStations(String value) { if (value == null) { throw new NullPointerException(); } ensureStationsIsMutable(); stations_.add(value); onChanged(); return this; } public Builder addAllStations( java.lang.Iterable<String> values) { ensureStationsIsMutable(); super.addAll(values, stations_); onChanged(); return this; } public Builder clearStations() { stations_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } void addStations(com.google.protobuf.ByteString value) { ensureStationsIsMutable(); stations_.add(value); onChanged(); } // required int32 distance = 9; private int distance_ ; public boolean hasDistance() { return ((bitField0_ & 0x00000100) == 0x00000100); } public int getDistance() { return distance_; } public Builder setDistance(int value) { bitField0_ |= 0x00000100; distance_ = value; onChanged(); return this; } public Builder clearDistance() { bitField0_ = (bitField0_ & ~0x00000100); distance_ = 0; onChanged(); return this; } // optional string startStreet = 10; private java.lang.Object startStreet_ = ""; public boolean hasStartStreet() { return ((bitField0_ & 0x00000200) == 0x00000200); } public String getStartStreet() { java.lang.Object ref = startStreet_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); startStreet_ = s; return s; } else { return (String) ref; } } public Builder setStartStreet(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; startStreet_ = value; onChanged(); return this; } public Builder clearStartStreet() { bitField0_ = (bitField0_ & ~0x00000200); startStreet_ = getDefaultInstance().getStartStreet(); onChanged(); return this; } void setStartStreet(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000200; startStreet_ = value; onChanged(); } // optional string destStreet = 11; private java.lang.Object destStreet_ = ""; public boolean hasDestStreet() { return ((bitField0_ & 0x00000400) == 0x00000400); } public String getDestStreet() { java.lang.Object ref = destStreet_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); destStreet_ = s; return s; } else { return (String) ref; } } public Builder setDestStreet(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; destStreet_ = value; onChanged(); return this; } public Builder clearDestStreet() { bitField0_ = (bitField0_ & ~0x00000400); destStreet_ = getDefaultInstance().getDestStreet(); onChanged(); return this; } void setDestStreet(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000400; destStreet_ = value; onChanged(); } // @@protoc_insertion_point(builder_scope:colectivos.SearchResultProxy.ConnectionProxy.LineProxy) } static { defaultInstance = new LineProxy(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:colectivos.SearchResultProxy.ConnectionProxy.LineProxy) } // repeated .colectivos.SearchResultProxy.ConnectionProxy.LineProxy lines = 1; public static final int LINES_FIELD_NUMBER = 1; private java.util.List<eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy> lines_; public java.util.List<eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy> getLinesList() { return lines_; } public java.util.List<? extends eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxyOrBuilder> getLinesOrBuilderList() { return lines_; } public int getLinesCount() { return lines_.size(); } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy getLines(int index) { return lines_.get(index); } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxyOrBuilder getLinesOrBuilder( int index) { return lines_.get(index); } private void initFields() { lines_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getLinesCount(); i++) { if (!getLines(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < lines_.size(); i++) { output.writeMessage(1, lines_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; for (int i = 0; i < lines_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, lines_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return eu.hellek.gba.proto.SearchResultProtos.internal_static_colectivos_SearchResultProxy_ConnectionProxy_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return eu.hellek.gba.proto.SearchResultProtos.internal_static_colectivos_SearchResultProxy_ConnectionProxy_fieldAccessorTable; } // Construct using eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getLinesFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); if (linesBuilder_ == null) { lines_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { linesBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.getDescriptor(); } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy getDefaultInstanceForType() { return eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.getDefaultInstance(); } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy build() { eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy buildPartial() { eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy result = new eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy(this); @SuppressWarnings("unused") int from_bitField0_ = bitField0_; if (linesBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001)) { lines_ = java.util.Collections.unmodifiableList(lines_); bitField0_ = (bitField0_ & ~0x00000001); } result.lines_ = lines_; } else { result.lines_ = linesBuilder_.build(); } onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy) { return mergeFrom((eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy other) { if (other == eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.getDefaultInstance()) return this; if (linesBuilder_ == null) { if (!other.lines_.isEmpty()) { if (lines_.isEmpty()) { lines_ = other.lines_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLinesIsMutable(); lines_.addAll(other.lines_); } onChanged(); } } else { if (!other.lines_.isEmpty()) { if (linesBuilder_.isEmpty()) { linesBuilder_.dispose(); linesBuilder_ = null; lines_ = other.lines_; bitField0_ = (bitField0_ & ~0x00000001); linesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getLinesFieldBuilder() : null; } else { linesBuilder_.addAllMessages(other.lines_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getLinesCount(); i++) { if (!getLines(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.Builder subBuilder = eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addLines(subBuilder.buildPartial()); break; } } } } private int bitField0_; // repeated .colectivos.SearchResultProxy.ConnectionProxy.LineProxy lines = 1; private java.util.List<eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy> lines_ = java.util.Collections.emptyList(); private void ensureLinesIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { lines_ = new java.util.ArrayList<eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy>(lines_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilder< eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.Builder, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxyOrBuilder> linesBuilder_; public java.util.List<eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy> getLinesList() { if (linesBuilder_ == null) { return java.util.Collections.unmodifiableList(lines_); } else { return linesBuilder_.getMessageList(); } } public int getLinesCount() { if (linesBuilder_ == null) { return lines_.size(); } else { return linesBuilder_.getCount(); } } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy getLines(int index) { if (linesBuilder_ == null) { return lines_.get(index); } else { return linesBuilder_.getMessage(index); } } public Builder setLines( int index, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy value) { if (linesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinesIsMutable(); lines_.set(index, value); onChanged(); } else { linesBuilder_.setMessage(index, value); } return this; } public Builder setLines( int index, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.set(index, builderForValue.build()); onChanged(); } else { linesBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addLines(eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy value) { if (linesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinesIsMutable(); lines_.add(value); onChanged(); } else { linesBuilder_.addMessage(value); } return this; } public Builder addLines( int index, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy value) { if (linesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinesIsMutable(); lines_.add(index, value); onChanged(); } else { linesBuilder_.addMessage(index, value); } return this; } public Builder addLines( eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.add(builderForValue.build()); onChanged(); } else { linesBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addLines( int index, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.add(index, builderForValue.build()); onChanged(); } else { linesBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllLines( java.lang.Iterable<? extends eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy> values) { if (linesBuilder_ == null) { ensureLinesIsMutable(); super.addAll(values, lines_); onChanged(); } else { linesBuilder_.addAllMessages(values); } return this; } public Builder clearLines() { if (linesBuilder_ == null) { lines_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { linesBuilder_.clear(); } return this; } public Builder removeLines(int index) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.remove(index); onChanged(); } else { linesBuilder_.remove(index); } return this; } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.Builder getLinesBuilder( int index) { return getLinesFieldBuilder().getBuilder(index); } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxyOrBuilder getLinesOrBuilder( int index) { if (linesBuilder_ == null) { return lines_.get(index); } else { return linesBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxyOrBuilder> getLinesOrBuilderList() { if (linesBuilder_ != null) { return linesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(lines_); } } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.Builder addLinesBuilder() { return getLinesFieldBuilder().addBuilder( eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.getDefaultInstance()); } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.Builder addLinesBuilder( int index) { return getLinesFieldBuilder().addBuilder( index, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.getDefaultInstance()); } public java.util.List<eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.Builder> getLinesBuilderList() { return getLinesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.Builder, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxyOrBuilder> getLinesFieldBuilder() { if (linesBuilder_ == null) { linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.Builder, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxyOrBuilder>( lines_, ((bitField0_ & 0x00000001) == 0x00000001), getParentForChildren(), isClean()); lines_ = null; } return linesBuilder_; } // @@protoc_insertion_point(builder_scope:colectivos.SearchResultProxy.ConnectionProxy) } static { defaultInstance = new ConnectionProxy(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:colectivos.SearchResultProxy.ConnectionProxy) } private int bitField0_; // optional string error = 1; public static final int ERROR_FIELD_NUMBER = 1; private java.lang.Object error_; public boolean hasError() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getError() { java.lang.Object ref = error_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { error_ = s; } return s; } } private com.google.protobuf.ByteString getErrorBytes() { java.lang.Object ref = error_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); error_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // repeated string mlkSet1String = 2; public static final int MLKSET1STRING_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList mlkSet1String_; public java.util.List<String> getMlkSet1StringList() { return mlkSet1String_; } public int getMlkSet1StringCount() { return mlkSet1String_.size(); } public String getMlkSet1String(int index) { return mlkSet1String_.get(index); } // repeated string mlkSet2String = 3; public static final int MLKSET2STRING_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList mlkSet2String_; public java.util.List<String> getMlkSet2StringList() { return mlkSet2String_; } public int getMlkSet2StringCount() { return mlkSet2String_.size(); } public String getMlkSet2String(int index) { return mlkSet2String_.get(index); } // repeated .colectivos.SearchResultProxy.ConnectionProxy connections = 4; public static final int CONNECTIONS_FIELD_NUMBER = 4; private java.util.List<eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy> connections_; public java.util.List<eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy> getConnectionsList() { return connections_; } public java.util.List<? extends eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxyOrBuilder> getConnectionsOrBuilderList() { return connections_; } public int getConnectionsCount() { return connections_.size(); } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy getConnections(int index) { return connections_.get(index); } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxyOrBuilder getConnectionsOrBuilder( int index) { return connections_.get(index); } private void initFields() { error_ = ""; mlkSet1String_ = com.google.protobuf.LazyStringArrayList.EMPTY; mlkSet2String_ = com.google.protobuf.LazyStringArrayList.EMPTY; connections_ = java.util.Collections.emptyList(); } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; for (int i = 0; i < getConnectionsCount(); i++) { if (!getConnections(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeBytes(1, getErrorBytes()); } for (int i = 0; i < mlkSet1String_.size(); i++) { output.writeBytes(2, mlkSet1String_.getByteString(i)); } for (int i = 0; i < mlkSet2String_.size(); i++) { output.writeBytes(3, mlkSet2String_.getByteString(i)); } for (int i = 0; i < connections_.size(); i++) { output.writeMessage(4, connections_.get(i)); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, getErrorBytes()); } { int dataSize = 0; for (int i = 0; i < mlkSet1String_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(mlkSet1String_.getByteString(i)); } size += dataSize; size += 1 * getMlkSet1StringList().size(); } { int dataSize = 0; for (int i = 0; i < mlkSet2String_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(mlkSet2String_.getByteString(i)); } size += dataSize; size += 1 * getMlkSet2StringList().size(); } for (int i = 0; i < connections_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, connections_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements eu.hellek.gba.proto.SearchResultProtos.SearchResultProxyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return eu.hellek.gba.proto.SearchResultProtos.internal_static_colectivos_SearchResultProxy_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return eu.hellek.gba.proto.SearchResultProtos.internal_static_colectivos_SearchResultProxy_fieldAccessorTable; } // Construct using eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { getConnectionsFieldBuilder(); } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); error_ = ""; bitField0_ = (bitField0_ & ~0x00000001); mlkSet1String_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); mlkSet2String_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); if (connectionsBuilder_ == null) { connections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { connectionsBuilder_.clear(); } return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.getDescriptor(); } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy getDefaultInstanceForType() { return eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.getDefaultInstance(); } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy build() { eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy buildPartial() { eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy result = new eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.error_ = error_; if (((bitField0_ & 0x00000002) == 0x00000002)) { mlkSet1String_ = new com.google.protobuf.UnmodifiableLazyStringList( mlkSet1String_); bitField0_ = (bitField0_ & ~0x00000002); } result.mlkSet1String_ = mlkSet1String_; if (((bitField0_ & 0x00000004) == 0x00000004)) { mlkSet2String_ = new com.google.protobuf.UnmodifiableLazyStringList( mlkSet2String_); bitField0_ = (bitField0_ & ~0x00000004); } result.mlkSet2String_ = mlkSet2String_; if (connectionsBuilder_ == null) { if (((bitField0_ & 0x00000008) == 0x00000008)) { connections_ = java.util.Collections.unmodifiableList(connections_); bitField0_ = (bitField0_ & ~0x00000008); } result.connections_ = connections_; } else { result.connections_ = connectionsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy) { return mergeFrom((eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy other) { if (other == eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.getDefaultInstance()) return this; if (other.hasError()) { setError(other.getError()); } if (!other.mlkSet1String_.isEmpty()) { if (mlkSet1String_.isEmpty()) { mlkSet1String_ = other.mlkSet1String_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureMlkSet1StringIsMutable(); mlkSet1String_.addAll(other.mlkSet1String_); } onChanged(); } if (!other.mlkSet2String_.isEmpty()) { if (mlkSet2String_.isEmpty()) { mlkSet2String_ = other.mlkSet2String_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureMlkSet2StringIsMutable(); mlkSet2String_.addAll(other.mlkSet2String_); } onChanged(); } if (connectionsBuilder_ == null) { if (!other.connections_.isEmpty()) { if (connections_.isEmpty()) { connections_ = other.connections_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureConnectionsIsMutable(); connections_.addAll(other.connections_); } onChanged(); } } else { if (!other.connections_.isEmpty()) { if (connectionsBuilder_.isEmpty()) { connectionsBuilder_.dispose(); connectionsBuilder_ = null; connections_ = other.connections_; bitField0_ = (bitField0_ & ~0x00000008); connectionsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? getConnectionsFieldBuilder() : null; } else { connectionsBuilder_.addAllMessages(other.connections_); } } } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { for (int i = 0; i < getConnectionsCount(); i++) { if (!getConnections(i).isInitialized()) { return false; } } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; error_ = input.readBytes(); break; } case 18: { ensureMlkSet1StringIsMutable(); mlkSet1String_.add(input.readBytes()); break; } case 26: { ensureMlkSet2StringIsMutable(); mlkSet2String_.add(input.readBytes()); break; } case 34: { eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.Builder subBuilder = eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.newBuilder(); input.readMessage(subBuilder, extensionRegistry); addConnections(subBuilder.buildPartial()); break; } } } } private int bitField0_; // optional string error = 1; private java.lang.Object error_ = ""; public boolean hasError() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getError() { java.lang.Object ref = error_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); error_ = s; return s; } else { return (String) ref; } } public Builder setError(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; error_ = value; onChanged(); return this; } public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000001); error_ = getDefaultInstance().getError(); onChanged(); return this; } void setError(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; error_ = value; onChanged(); } // repeated string mlkSet1String = 2; private com.google.protobuf.LazyStringList mlkSet1String_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMlkSet1StringIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { mlkSet1String_ = new com.google.protobuf.LazyStringArrayList(mlkSet1String_); bitField0_ |= 0x00000002; } } public java.util.List<String> getMlkSet1StringList() { return java.util.Collections.unmodifiableList(mlkSet1String_); } public int getMlkSet1StringCount() { return mlkSet1String_.size(); } public String getMlkSet1String(int index) { return mlkSet1String_.get(index); } public Builder setMlkSet1String( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureMlkSet1StringIsMutable(); mlkSet1String_.set(index, value); onChanged(); return this; } public Builder addMlkSet1String(String value) { if (value == null) { throw new NullPointerException(); } ensureMlkSet1StringIsMutable(); mlkSet1String_.add(value); onChanged(); return this; } public Builder addAllMlkSet1String( java.lang.Iterable<String> values) { ensureMlkSet1StringIsMutable(); super.addAll(values, mlkSet1String_); onChanged(); return this; } public Builder clearMlkSet1String() { mlkSet1String_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } void addMlkSet1String(com.google.protobuf.ByteString value) { ensureMlkSet1StringIsMutable(); mlkSet1String_.add(value); onChanged(); } // repeated string mlkSet2String = 3; private com.google.protobuf.LazyStringList mlkSet2String_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureMlkSet2StringIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { mlkSet2String_ = new com.google.protobuf.LazyStringArrayList(mlkSet2String_); bitField0_ |= 0x00000004; } } public java.util.List<String> getMlkSet2StringList() { return java.util.Collections.unmodifiableList(mlkSet2String_); } public int getMlkSet2StringCount() { return mlkSet2String_.size(); } public String getMlkSet2String(int index) { return mlkSet2String_.get(index); } public Builder setMlkSet2String( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureMlkSet2StringIsMutable(); mlkSet2String_.set(index, value); onChanged(); return this; } public Builder addMlkSet2String(String value) { if (value == null) { throw new NullPointerException(); } ensureMlkSet2StringIsMutable(); mlkSet2String_.add(value); onChanged(); return this; } public Builder addAllMlkSet2String( java.lang.Iterable<String> values) { ensureMlkSet2StringIsMutable(); super.addAll(values, mlkSet2String_); onChanged(); return this; } public Builder clearMlkSet2String() { mlkSet2String_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } void addMlkSet2String(com.google.protobuf.ByteString value) { ensureMlkSet2StringIsMutable(); mlkSet2String_.add(value); onChanged(); } // repeated .colectivos.SearchResultProxy.ConnectionProxy connections = 4; private java.util.List<eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy> connections_ = java.util.Collections.emptyList(); private void ensureConnectionsIsMutable() { if (!((bitField0_ & 0x00000008) == 0x00000008)) { connections_ = new java.util.ArrayList<eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy>(connections_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilder< eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.Builder, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxyOrBuilder> connectionsBuilder_; public java.util.List<eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy> getConnectionsList() { if (connectionsBuilder_ == null) { return java.util.Collections.unmodifiableList(connections_); } else { return connectionsBuilder_.getMessageList(); } } public int getConnectionsCount() { if (connectionsBuilder_ == null) { return connections_.size(); } else { return connectionsBuilder_.getCount(); } } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy getConnections(int index) { if (connectionsBuilder_ == null) { return connections_.get(index); } else { return connectionsBuilder_.getMessage(index); } } public Builder setConnections( int index, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConnectionsIsMutable(); connections_.set(index, value); onChanged(); } else { connectionsBuilder_.setMessage(index, value); } return this; } public Builder setConnections( int index, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.Builder builderForValue) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); connections_.set(index, builderForValue.build()); onChanged(); } else { connectionsBuilder_.setMessage(index, builderForValue.build()); } return this; } public Builder addConnections(eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConnectionsIsMutable(); connections_.add(value); onChanged(); } else { connectionsBuilder_.addMessage(value); } return this; } public Builder addConnections( int index, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureConnectionsIsMutable(); connections_.add(index, value); onChanged(); } else { connectionsBuilder_.addMessage(index, value); } return this; } public Builder addConnections( eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.Builder builderForValue) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); connections_.add(builderForValue.build()); onChanged(); } else { connectionsBuilder_.addMessage(builderForValue.build()); } return this; } public Builder addConnections( int index, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.Builder builderForValue) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); connections_.add(index, builderForValue.build()); onChanged(); } else { connectionsBuilder_.addMessage(index, builderForValue.build()); } return this; } public Builder addAllConnections( java.lang.Iterable<? extends eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy> values) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); super.addAll(values, connections_); onChanged(); } else { connectionsBuilder_.addAllMessages(values); } return this; } public Builder clearConnections() { if (connectionsBuilder_ == null) { connections_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { connectionsBuilder_.clear(); } return this; } public Builder removeConnections(int index) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); connections_.remove(index); onChanged(); } else { connectionsBuilder_.remove(index); } return this; } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.Builder getConnectionsBuilder( int index) { return getConnectionsFieldBuilder().getBuilder(index); } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxyOrBuilder getConnectionsOrBuilder( int index) { if (connectionsBuilder_ == null) { return connections_.get(index); } else { return connectionsBuilder_.getMessageOrBuilder(index); } } public java.util.List<? extends eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxyOrBuilder> getConnectionsOrBuilderList() { if (connectionsBuilder_ != null) { return connectionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(connections_); } } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.Builder addConnectionsBuilder() { return getConnectionsFieldBuilder().addBuilder( eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.getDefaultInstance()); } public eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.Builder addConnectionsBuilder( int index) { return getConnectionsFieldBuilder().addBuilder( index, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.getDefaultInstance()); } public java.util.List<eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.Builder> getConnectionsBuilderList() { return getConnectionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilder< eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.Builder, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxyOrBuilder> getConnectionsFieldBuilder() { if (connectionsBuilder_ == null) { connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.Builder, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxyOrBuilder>( connections_, ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); connections_ = null; } return connectionsBuilder_; } // @@protoc_insertion_point(builder_scope:colectivos.SearchResultProxy) } static { defaultInstance = new SearchResultProxy(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:colectivos.SearchResultProxy) } private static com.google.protobuf.Descriptors.Descriptor internal_static_colectivos_SearchResultProxy_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_colectivos_SearchResultProxy_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_colectivos_SearchResultProxy_ConnectionProxy_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_colectivos_SearchResultProxy_ConnectionProxy_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_colectivos_SearchResultProxy_ConnectionProxy_LineProxy_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_colectivos_SearchResultProxy_ConnectionProxy_LineProxy_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\027SearchResultProxy.proto\022\ncolectivos\"\313\003" + "\n\021SearchResultProxy\022\r\n\005error\030\001 \001(\t\022\025\n\rml" + "kSet1String\030\002 \003(\t\022\025\n\rmlkSet2String\030\003 \003(\t" + "\022B\n\013connections\030\004 \003(\0132-.colectivos.Searc" + "hResultProxy.ConnectionProxy\032\264\002\n\017Connect" + "ionProxy\022F\n\005lines\030\001 \003(\01327.colectivos.Sea" + "rchResultProxy.ConnectionProxy.LineProxy" + "\032\330\001\n\tLineProxy\022\013\n\003key\030\001 \001(\t\022\017\n\007linenum\030\002" + " \001(\t\022\r\n\005ramal\030\003 \001(\t\022\014\n\004type\030\004 \002(\005\022\026\n\016rel" + "evantPoints\030\005 \003(\002\022\021\n\tallPoints\030\006 \003(\002\022\030\n\020", "alternativeLines\030\007 \003(\t\022\020\n\010stations\030\010 \003(\t" + "\022\020\n\010distance\030\t \002(\005\022\023\n\013startStreet\030\n \001(\t\022" + "\022\n\ndestStreet\030\013 \001(\tB)\n\023eu.hellek.gba.pro" + "toB\022SearchResultProtos" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() { public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.Descriptors.FileDescriptor root) { descriptor = root; internal_static_colectivos_SearchResultProxy_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_colectivos_SearchResultProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_colectivos_SearchResultProxy_descriptor, new java.lang.String[] { "Error", "MlkSet1String", "MlkSet2String", "Connections", }, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.class, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.Builder.class); internal_static_colectivos_SearchResultProxy_ConnectionProxy_descriptor = internal_static_colectivos_SearchResultProxy_descriptor.getNestedTypes().get(0); internal_static_colectivos_SearchResultProxy_ConnectionProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_colectivos_SearchResultProxy_ConnectionProxy_descriptor, new java.lang.String[] { "Lines", }, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.class, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.Builder.class); internal_static_colectivos_SearchResultProxy_ConnectionProxy_LineProxy_descriptor = internal_static_colectivos_SearchResultProxy_ConnectionProxy_descriptor.getNestedTypes().get(0); internal_static_colectivos_SearchResultProxy_ConnectionProxy_LineProxy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_colectivos_SearchResultProxy_ConnectionProxy_LineProxy_descriptor, new java.lang.String[] { "Key", "Linenum", "Ramal", "Type", "RelevantPoints", "AllPoints", "AlternativeLines", "Stations", "Distance", "StartStreet", "DestStreet", }, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.class, eu.hellek.gba.proto.SearchResultProtos.SearchResultProxy.ConnectionProxy.LineProxy.Builder.class); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }